package com.xintonghua.bussiness.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 作者：wanxianyi
 * 时间：2018/3/29.
 * 包名：com.xintonghua.bussiness.bean
 */

public class StaffBean implements Parcelable {
    private String name;
    private int id;

    public StaffBean(String name, int id) {
        this.name = name;
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.name);
        dest.writeInt(this.id);
    }

    public StaffBean() {
    }

    protected StaffBean(Parcel in) {
        this.name = in.readString();
        this.id = in.readInt();
    }

    public static final Parcelable.Creator<StaffBean> CREATOR = new Parcelable.Creator<StaffBean>() {
        @Override
        public StaffBean createFromParcel(Parcel source) {
            return new StaffBean(source);
        }

        @Override
        public StaffBean[] newArray(int size) {
            return new StaffBean[size];
        }
    };
}
